package com.kingyun.gpsinspection.purificationservice.dao.mapper.jsm;


import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Report;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.ReportTempTotal;

import java.util.List;

public interface ReportTempTotalMapper {
    int deleteByPrimaryKey(String totalId);

    int insert(ReportTempTotal record);

    int insertSelective(ReportTempTotal record);

    ReportTempTotal selectByPrimaryKey(String totalId);

    int updateByPrimaryKeySelective(ReportTempTotal record);

    int updateByPrimaryKey(ReportTempTotal record);

    /**
     * 根据模板id查询合计
     * @param reportTempId
     * @return
     */
    List<ReportTempTotal> queryTotalsById(String reportTempId);

    /**
     * 根据模板id删除表头信息
     * @param reportTempId
     * @return
     */
    int deleteByTempId(String reportTempId);

    /**
     * 获取合计
     * @param report
     * @return
     */
    List<ReportTempTotal> getSums(Report report);
}